package com.lanou3g.ptp.service;

import com.github.pagehelper.PageInfo;
import com.lanou3g.ptp.entity.Approval;
import com.lanou3g.ptp.vo.Pageable;

import java.util.List;

public interface ApprovalService {
    //老师页面显示所有
    PageInfo<Approval> unPassApprovals(Long teacherId, Pageable page);

    List<Approval> findByStudentId(Long studentId);

    Boolean passApproval(String teacherName, Long approvalId);

    Boolean denyApproval(String teacherName, Long approvalId);

    boolean postApproval(Approval approval);
}
